import { ArticleCategory, ArticleCategorySchema } from '@ai/entity';
import { forwardRef, Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { ArticleModule } from '../article/article.module';
import { ArticleCategoryController } from './article-category.controller';
import { ArticleCategoryService } from './article-category.service';

@Module({
    imports: [
        forwardRef(() => ArticleModule),
        MongooseModule.forFeature([{ name: ArticleCategory.name, schema: ArticleCategorySchema }]),
    ],
    controllers: [ArticleCategoryController],
    providers: [ArticleCategoryService],
    exports: [ArticleCategoryService],
})
export class ArticleCategoryModule {}
